#	$OpenBSD: Makefile,v 1.4 2014/05/18 10:33:05 matthieu Exp $

FONTCONFIG =	${.CURDIR}/../../../dist/fontconfig

MAN = FcAtomicCreate.3 \
	FcAtomicDeleteNew.3 \
	FcAtomicDestroy.3 \
	FcAtomicLock.3 \
	FcAtomicNewFile.3 \
	FcAtomicOrigFile.3 \
	FcAtomicReplaceOrig.3 \
	FcAtomicUnlock.3 \
	FcBlanksAdd.3 \
	FcBlanksCreate.3 \
	FcBlanksDestroy.3 \
	FcBlanksIsMember.3 \
	FcCacheCopySet.3 \
	FcCacheCreateTagFile.3 \
	FcCacheDir.3 \
	FcCacheNumFont.3 \
	FcCacheNumSubdir.3 \
	FcCacheSubdir.3 \
	FcCharSetAddChar.3 \
	FcCharSetCopy.3 \
	FcCharSetCount.3 \
	FcCharSetCoverage.3 \
	FcCharSetCreate.3 \
	FcCharSetDelChar.3 \
	FcCharSetDestroy.3 \
	FcCharSetEqual.3 \
	FcCharSetFirstPage.3 \
	FcCharSetHasChar.3 \
	FcCharSetIntersect.3 \
	FcCharSetIntersectCount.3 \
	FcCharSetIsSubset.3 \
	FcCharSetMerge.3 \
	FcCharSetNew.3 \
	FcCharSetNextPage.3 \
	FcCharSetSubtract.3 \
	FcCharSetSubtractCount.3 \
	FcCharSetUnion.3 \
	FcConfigAppFontAddDir.3 \
	FcConfigAppFontAddFile.3 \
	FcConfigAppFontClear.3 \
	FcConfigBuildFonts.3 \
	FcConfigCreate.3 \
	FcConfigDestroy.3 \
	FcConfigEnableHome.3 \
	FcConfigFilename.3 \
	FcConfigGetBlanks.3 \
	FcConfigGetCache.3 \
	FcConfigGetCacheDirs.3 \
	FcConfigGetConfigDirs.3 \
	FcConfigGetConfigFiles.3 \
	FcConfigGetCurrent.3 \
	FcConfigGetFontDirs.3 \
	FcConfigGetFonts.3 \
	FcConfigGetRescanInterval.3 \
	FcConfigGetSysRoot.3 \
	FcConfigHome.3 \
	FcConfigParseAndLoad.3 \
	FcConfigReference.3 \
	FcConfigSetCurrent.3 \
	FcConfigSetRescanInterval.3 \
	FcConfigSetSysRoot.3 \
	FcConfigSubstitute.3 \
	FcConfigSubstituteWithPat.3 \
	FcConfigUptoDate.3 \
	FcDefaultSubstitute.3 \
	FcDirCacheClean.3 \
	FcDirCacheLoad.3 \
	FcDirCacheLoadFile.3 \
	FcDirCacheRead.3 \
	FcDirCacheRescan.3 \
	FcDirCacheUnlink.3 \
	FcDirCacheUnload.3 \
	FcDirCacheValid.3 \
	FcDirSave.3 \
	FcDirScan.3 \
	FcFileIsDir.3 \
	FcFileScan.3 \
	FcFini.3 \
	FcFontList.3 \
	FcFontMatch.3 \
	FcFontRenderPrepare.3 \
	FcFontSetAdd.3 \
	FcFontSetCreate.3 \
	FcFontSetDestroy.3 \
	FcFontSetList.3 \
	FcFontSetMatch.3 \
	FcFontSetPrint.3 \
	FcFontSetSort.3 \
	FcFontSetSortDestroy.3 \
	FcFontSort.3 \
	FcFreeTypeCharIndex.3 \
	FcFreeTypeCharSet.3 \
	FcFreeTypeCharSetAndSpacing.3 \
	FcFreeTypeQuery.3 \
	FcFreeTypeQueryFace.3 \
	FcGetDefaultLangs.3 \
	FcGetLangs.3 \
	FcGetVersion.3 \
	FcInit.3 \
	FcInitBringUptoDate.3 \
	FcInitLoadConfig.3 \
	FcInitLoadConfigAndFonts.3 \
	FcInitReinitialize.3 \
	FcIsLower.3 \
	FcIsUpper.3 \
	FcLangGetCharSet.3 \
	FcLangNormalize.3 \
	FcLangSetAdd.3 \
	FcLangSetCompare.3 \
	FcLangSetContains.3 \
	FcLangSetCopy.3 \
	FcLangSetCreate.3 \
	FcLangSetDel.3 \
	FcLangSetDestroy.3 \
	FcLangSetEqual.3 \
	FcLangSetGetLangs.3 \
	FcLangSetHasLang.3 \
	FcLangSetHash.3 \
	FcLangSetSubtract.3 \
	FcLangSetUnion.3 \
	FcMatrixCopy.3 \
	FcMatrixEqual.3 \
	FcMatrixInit.3 \
	FcMatrixMultiply.3 \
	FcMatrixRotate.3 \
	FcMatrixScale.3 \
	FcMatrixShear.3 \
	FcNameConstant.3 \
	FcNameGetConstant.3 \
	FcNameGetObjectType.3 \
	FcNameParse.3 \
	FcNameRegisterConstants.3 \
	FcNameRegisterObjectTypes.3 \
	FcNameUnparse.3 \
	FcNameUnregisterConstants.3 \
	FcNameUnregisterObjectTypes.3 \
	FcObjectSetAdd.3 \
	FcObjectSetBuild.3 \
	FcObjectSetCreate.3 \
	FcObjectSetDestroy.3 \
	FcPatternAdd-Type.3 \
	FcPatternAdd.3 \
	FcPatternAddWeak.3 \
	FcPatternBuild.3 \
	FcPatternCreate.3 \
	FcPatternDel.3 \
	FcPatternDestroy.3 \
	FcPatternDuplicate.3 \
	FcPatternEqual.3 \
	FcPatternEqualSubset.3 \
	FcPatternFilter.3 \
	FcPatternFormat.3 \
	FcPatternGet-Type.3 \
	FcPatternGet.3 \
	FcPatternHash.3 \
	FcPatternPrint.3 \
	FcPatternReference.3 \
	FcPatternRemove.3 \
	FcStrBasename.3 \
	FcStrCmp.3 \
	FcStrCmpIgnoreCase.3 \
	FcStrCopy.3 \
	FcStrCopyFilename.3 \
	FcStrDirname.3 \
	FcStrDowncase.3 \
	FcStrFree.3 \
	FcStrListCreate.3 \
	FcStrListDone.3 \
	FcStrListFirst.3 \
	FcStrListNext.3 \
	FcStrPlus.3 \
	FcStrSetAdd.3 \
	FcStrSetAddFilename.3 \
	FcStrSetCreate.3 \
	FcStrSetDel.3 \
	FcStrSetDestroy.3 \
	FcStrSetEqual.3 \
	FcStrSetMember.3 \
	FcStrStr.3 \
	FcStrStrIgnoreCase.3 \
	FcToLower.3 \
	FcUcs4ToUtf8.3 \
	FcUtf16Len.3 \
	FcUtf16ToUcs4.3 \
	FcUtf8Len.3 \
	FcUtf8ToUcs4.3 \
	FcValueDestroy.3 \
	FcValueEqual.3 \
	FcValuePrint.3 \
	FcValueSave.3 \
	fonts-conf.5

PDF_FILES = fontconfig-devel.pdf fontconfig-user.pdf
TXT_FILES = fontconfig-devel.txt fontconfig-user.txt
HTML_DEVEL_FILES = \
	fcatomiccreate.html \
	fcatomicdeletenew.html \
	fcatomicdestroy.html \
	fcatomiclock.html \
	fcatomicnewfile.html \
	fcatomicorigfile.html \
	fcatomicreplaceorig.html \
	fcatomicunlock.html \
	fcblanksadd.html \
	fcblankscreate.html \
	fcblanksdestroy.html \
	fcblanksismember.html \
	fccachecopyset.html \
	fccachecreatetagfile.html \
	fccachedir.html \
	fccachenumfont.html \
	fccachenumsubdir.html \
	fccachesubdir.html \
	fccharsetaddchar.html \
	fccharsetcopy.html \
	fccharsetcount.html \
	fccharsetcoverage.html \
	fccharsetcreate.html \
	fccharsetdelchar.html \
	fccharsetdestroy.html \
	fccharsetequal.html \
	fccharsetfirstpage.html \
	fccharsethaschar.html \
	fccharsetintersect.html \
	fccharsetintersectcount.html \
	fccharsetissubset.html \
	fccharsetmerge.html \
	fccharsetnew.html \
	fccharsetnextpage.html \
	fccharsetsubtract.html \
	fccharsetsubtractcount.html \
	fccharsetunion.html \
	fcconfigappfontadddir.html \
	fcconfigappfontaddfile.html \
	fcconfigappfontclear.html \
	fcconfigbuildfonts.html \
	fcconfigcreate.html \
	fcconfigdestroy.html \
	fcconfigenablehome.html \
	fcconfigfilename.html \
	fcconfiggetblanks.html \
	fcconfiggetcache.html \
	fcconfiggetcachedirs.html \
	fcconfiggetconfigdirs.html \
	fcconfiggetconfigfiles.html \
	fcconfiggetcurrent.html \
	fcconfiggetfontdirs.html \
	fcconfiggetfonts.html \
	fcconfiggetrescaninterval.html \
	fcconfiggetsysroot.html \
	fcconfighome.html \
	fcconfigparseandload.html \
	fcconfigreference.html \
	fcconfigsetcurrent.html \
	fcconfigsetrescaninterval.html \
	fcconfigsetsysroot.html \
	fcconfigsubstitute.html \
	fcconfigsubstitutewithpat.html \
	fcconfiguptodate.html \
	fcdefaultsubstitute.html \
	fcdircacheclean.html \
	fcdircacheload.html \
	fcdircacheloadfile.html \
	fcdircacheread.html \
	fcdircacherescan.html \
	fcdircacheunlink.html \
	fcdircacheunload.html \
	fcdircachevalid.html \
	fcdirsave.html \
	fcdirscan.html \
	fcfileisdir.html \
	fcfilescan.html \
	fcfini.html \
	fcfontlist.html \
	fcfontmatch.html \
	fcfontrenderprepare.html \
	fcfontsetadd.html \
	fcfontsetcreate.html \
	fcfontsetdestroy.html \
	fcfontsetlist.html \
	fcfontsetmatch.html \
	fcfontsetprint.html \
	fcfontsetsort.html \
	fcfontsetsortdestroy.html \
	fcfontsort.html \
	fcfreetypecharindex.html \
	fcfreetypecharset.html \
	fcfreetypecharsetandspacing.html \
	fcfreetypequery.html \
	fcfreetypequeryface.html \
	fcgetdefaultlangs.html \
	fcgetlangs.html \
	fcgetversion.html \
	fcinit.html \
	fcinitbringuptodate.html \
	fcinitloadconfig.html \
	fcinitloadconfigandfonts.html \
	fcinitreinitialize.html \
	fcislower.html \
	fcisupper.html \
	fclanggetcharset.html \
	fclangnormalize.html \
	fclangsetadd.html \
	fclangsetcompare.html \
	fclangsetcontains.html \
	fclangsetcopy.html \
	fclangsetcreate.html \
	fclangsetdel.html \
	fclangsetdestroy.html \
	fclangsetequal.html \
	fclangsetgetlangs.html \
	fclangsethash.html \
	fclangsethaslang.html \
	fclangsetsubtract.html \
	fclangsetunion.html \
	fcmatrixcopy.html \
	fcmatrixequal.html \
	fcmatrixinit.html \
	fcmatrixmultiply.html \
	fcmatrixrotate.html \
	fcmatrixscale.html \
	fcmatrixshear.html \
	fcnameconstant.html \
	fcnamegetconstant.html \
	fcnamegetobjecttype.html \
	fcnameparse.html \
	fcnameregisterconstants.html \
	fcnameregisterobjecttypes.html \
	fcnameunparse.html \
	fcnameunregisterconstants.html \
	fcnameunregisterobjecttypes.html \
	fcobjectsetadd.html \
	fcobjectsetbuild.html \
	fcobjectsetcreate.html \
	fcobjectsetdestroy.html \
	fcpatternadd-type.html \
	fcpatternadd.html \
	fcpatternaddweak.html \
	fcpatternbuild.html \
	fcpatterncreate.html \
	fcpatterndel.html \
	fcpatterndestroy.html \
	fcpatternduplicate.html \
	fcpatternequal.html \
	fcpatternequalsubset.html \
	fcpatternfilter.html \
	fcpatternformat.html \
	fcpatternget-type.html \
	fcpatternget.html \
	fcpatternhash.html \
	fcpatternprint.html \
	fcpatternreference.html \
	fcpatternremove.html \
	fcstrbasename.html \
	fcstrcmp.html \
	fcstrcmpignorecase.html \
	fcstrcopy.html \
	fcstrcopyfilename.html \
	fcstrdirname.html \
	fcstrdowncase.html \
	fcstrfree.html \
	fcstrlistcreate.html \
	fcstrlistdone.html \
	fcstrlistfirst.html \
	fcstrlistnext.html \
	fcstrplus.html \
	fcstrsetadd.html \
	fcstrsetaddfilename.html \
	fcstrsetcreate.html \
	fcstrsetdel.html \
	fcstrsetdestroy.html \
	fcstrsetequal.html \
	fcstrsetmember.html \
	fcstrstr.html \
	fcstrstrignorecase.html \
	fctolower.html \
	fcucs4toutf8.html \
	fcutf16len.html \
	fcutf16toucs4.html \
	fcutf8len.html \
	fcutf8toucs4.html \
	fcvaluedestroy.html \
	fcvalueequal.html \
	fcvalueprint.html \
	fcvaluesave.html \
	x102.html \
	x19.html \
	x31.html

HTML_USER_FILES = fontconfig-user.html

afterinstall:
	@for f in ${PDF_FILES} ${TXT_FILES} ${HTML_USER_FILES}; do \
		echo "installing $$f" ; \
		${INSTALL_DATA} ${FONTCONFIG}/doc/$$f \
		  ${DESTDIR}${X11BASE}/share/doc/fontconfig ; \
	done
	@for f in ${HTML_DEVEL_FILES}; do \
		echo "installing $$f" ; \
		${INSTALL_DATA} ${FONTCONFIG}/doc/fontconfig-devel/$$f \
		  ${DESTDIR}${X11BASE}/share/doc/fontconfig/fontconfig-devel ; \
	done

.PATH: ${FONTCONFIG}/doc

.include <bsd.prog.mk>
.include <bsd.xorg.mk>
